# Define a class named "TimeBean"
class timeBean:
	def __init__(self,
	             inflow: float = None,
	             inflow_intvl: float = None,
	             inflow_upper: float = None,
	             outflow: float = None,
	             flow_wdrl: float = None,
	             sub_wdrl: dict = None,
	             level_begin: float = None,
	             level_end: float = None,
	             v_begin: float = None,
	             v_end: float = None):
		# 区间流量 单一时段的来水模型的结果填入 这个timebean实例相当于某一个时段的来水，最后组成一个时序列表作为其他类的数据
		# 这里填一个值，比如来水出参的data["01-010200"]["YearRunoffPre95"]
		self.inflow_intvl = inflow_intvl

		#皆为计算结果 不需要输入
		self.inflow = inflow  # 总入流
		self.inflow_upper = inflow_upper  # 上游来水
		self.outflow = outflow  # 下泄流量
		self.flow_wdrl = flow_wdrl  # 提引水流量
		self.sub_wdrl = sub_wdrl  # 区域提引水流量
		self.level_begin = level_begin  # 初水位
		self.level_end = level_end  # 末水位
		self.v_begin = v_begin  # 初库容
		self.v_end = v_end  # 末库容
	
	def getInflow(self):
		return self.inflow

	def setInflow(self, inflow: float = None):
		self.inflow = inflow
		
	def getInflowIntvl(self):
		return self.inflow_intvl

	def setInflowIntvl(self, inflow_intvl: float = None):
		self.inflow_intvl = inflow_intvl
		
	def getInflowUpper(self):
		return self.inflow_upper

	def setInflowUpper(self, inflow_upper: float = None):
		self.inflow_upper = inflow_upper
		
	def getOutflow(self):
		return self.outflow

	def setOutflow(self, outflow: float = None):
		self.outflow = outflow
		
	def getFlowWdrl(self):
		return self.flow_wdrl

	def setFlowWdrl(self, flow_wdrl: float = None):
		self.flow_wdrl = flow_wdrl
	
	def getSubWdrl(self):
		return self.sub_wdrl

	def setSubWdrl(self, sub_wdrl: dict = None):
		self.sub_wdrl = sub_wdrl
	
	def getLevelBegin(self):
		return self.level_begin

	def setLevelBegin(self, level_begin: float = None):
		self.level_begin = level_begin
	
	def getLevelEnd(self):
		return self.level_end

	def setLevelEnd(self, level_end: float = None):
		self.level_end = level_end
	
	def getvBegin(self):
		return self.v_begin

	def setvBegin(self, v_begin: float = None):
		self.v_begin = v_begin
		
	def getvEnd(self):
		return self.v_end

	def setvEnd(self, v_end: float = None):
		self.v_end = v_end


			